package router

import (
	"chat.com/server/wsserver/connection"
	"chat.com/server/wsserver/service"
)

// Websocket路由
func WebSocketInit() {
	connection.Register("login", service.WsLoginHandler)
	connection.Register("heartbeat", service.HeartbeatHandler)
	connection.Register("ping", service.PingHandler)

	connection.Register("singleChat", service.SingleChatHandler)
	connection.Register("singleChatAck", service.SingleChatHandler)
	connection.Register("singleChat", service.SingleChatHandler)
	connection.Register("singleChat", service.SingleChatHandler)
}
